package cn.bootx.table.modify.mysql.index;

import cn.bootx.table.modify.annotation.DbKey;
import cn.bootx.table.modify.annotation.DbTable;
import cn.bootx.table.modify.mysql.annotation.DbMySqlIndex;
import cn.bootx.table.modify.mysql.constants.MySqlIndexType;
import lombok.Data;

/**
 * 简单索引配置
 * @author xxm
 * @date 2023/6/2
 */
@Data
@DbTable(comment = "简单索引配置")
public class SimpleIndexEntity {

    @DbKey
    private Long id;

    @DbMySqlIndex
    private String normalIndex1;

    @DbMySqlIndex(name = "index_2",comment = "普通索引2")
    private String normalIndex2;

    @DbMySqlIndex(type = MySqlIndexType.UNIQUE)
    private Long uniqueIndex;

    @DbMySqlIndex(type = MySqlIndexType.FULLTEXT)
    private String fulltextIndex;
}
